home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / archie38_1.lha / archie-1.4 / msdos / hostform.h < prev    next >
C/C++ Source or Header  |  1995-01-04  |  6KB  |  140 lines

  1. /* hfile.inc - placed into all .h files to set up for PVCS 
  2.    $Header: /tmp_mnt/com/projects/archie/msdos/RCS/hostform.h,v 1.2 1991/12/13 20:08:52 brendan Exp $
  3.    Revision History ----------------------------------------------------
  4.    $Log: hostform.h,v $
  5.  * Revision 1.2  1991/12/13  20:08:52  brendan
  6.  * entered into RCS
  7.  *
  8.  * 
  9.  *    Rev 1.0   15 Jan 1990 19:30:22   bkc
  10. */
  11.  
  12.  
  13. /*
  14. *  Host and local machine configuration information.
  15. *
  16. ****************************************************************************
  17. *                                                                          *
  18. *      NCSA Telnet for the PC                                              *
  19. *      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
  20. *                                                                          *
  21. *      National Center for Supercomputing Applications                     *
  22. *      152 Computing Applications Building                                 *
  23. *      605 E. Springfield Ave.                                             *
  24. *      Champaign, IL  61820                                                *
  25. *                                                                          *
  26. *      This program is in the public domain.                               *
  27. *                                                                          *
  28. ****************************************************************************
  29. */
  30.  
  31. /*
  32. *  Linked list of structures which describe other machines.
  33. *  Arranged one per session with unique session names.
  34. */
  35.  
  36. struct machinfo {
  37.     unsigned char 
  38.         *sname,                    /* pointer to name of session */
  39.         *hname,                 /* pointer to name of that machine */
  40.         *font,                    /* font name, if we can do it */
  41.         *keymap,                /* pointer to keymap file name */
  42.         hostip[4],                /* IP number of this machine */
  43.         gateway,                /* gateway preference, start with 1 */
  44.         nameserv,                /* nameserver preference, start with 1 */
  45.         bksp,                    /* backspace value */
  46.         halfdup,                /* half duplex required */
  47.         crmap,                    /* Strange Berkeley 4.3 CR mode needed */
  48.         vtwrap,                    /* flag on when need wrap mode */
  49.         vtmargin;                /* col to ring bell at */
  50.     int
  51.         clearsave,                /* whether to save cleared lines */
  52.         fsize,                    /* font size in points */
  53.         nfcolor[3],                /* normal foreground */
  54.         nbcolor[3],                /* normal background */
  55.         bfcolor[3],                /* blink             */
  56.         bbcolor[3],
  57.         ufcolor[3],             /* underline */
  58.         ubcolor[3],
  59.         mno,                    /* machine number for reference */
  60.         mstat,                    /* status of this machine entry */
  61.         bkscroll,                /* how many lines to save */
  62.         retrans,                /* initial retrans timeout */
  63.         conto,                    /* time out in seconds to wait for connect */
  64.         window,                    /* window, will be checked against buffers */
  65.         maxseg,                    /* maximum receivable segment size */
  66.         mtu,                    /* maximum transfer unit MTU (out) */
  67.                 domainsremaining,                       /* how many domain search list entries remain */
  68.                 destport,                               /* yepper, you can telnet to a different port than 23 */
  69.         flags;                    /* general flags holder */        
  70. #define    MFLAGS_SCRIPT    0x80
  71.     struct machinfo *next;        /* surprise, its a linked list! */
  72. };
  73.  
  74. struct machinfo *Sgethost(),*Shostlook(),*Slooknum(),*Slookip(),*Smadd();
  75.  
  76. /*
  77. *  status fields for mstat, what do we know about that machine?
  78. */
  79. #define NOIP 1                    /* we don't have IP number */
  80. #define UDPDOM 3                /* there is a UDP request pending on it */
  81. /*  The next 20 numbers are reserved for UDPDOM */
  82. #define HAVEIP 50                /* at least we have the # */
  83. #define HFILE 70                /* we have IP number from host file */
  84. #define DOM 71                    /* we have an IP number from DOMAIN */
  85. #define FROMKIP 72                /* have IP# from KIP server */
  86.  
  87.  
  88.  
  89. /*
  90. *   Configuration information which 
  91. *   the calling program may want to obtain from the hosts file.
  92. *   The calling program should include hostform.h and call
  93. *   Sgetconfig(cp)
  94. *     struct config *cp;
  95. *   which will copy the information to the user's data structure.
  96. */
  97. struct config {
  98.     unsigned char
  99.         netmask[4],                /* subnetting mask being used */
  100.         havemask,                /* do we have a netmask? */
  101.         irqnum,                    /* which hardware interrupt */
  102.         myipnum[4],                /* what is my IP #? */
  103.         me[32],                    /* my name description (first 30 chars) */
  104.         color[3],                /* default colors to use */
  105.         hw[10],                    /* hardware type for network */
  106.         video[10],                /* video graphics hardware available */
  107.         bios,                    /* flag, do we want to use BIOS for screen access */
  108.         tek,                    /* flag, enable tektronix graphics */
  109.         ftp,                    /* flag, enable ftp server */
  110.         rcp,                    /* flag, enable rcp server */
  111.         comkeys,                /* flag, commandkeys=yes */
  112.         *termtype,                /* terminal type specification */
  113.         *zone,                    /* AppleTalk zone for KIP NBP */
  114.         *defdom,                /* default domain */
  115.         *capture,                /* pointer to where the capture file name is */
  116.         *pass,                    /* pointer to where the password file name is */
  117.         *hpfile,                /* HP file name */
  118.         *psfile,                /* PS file name */
  119.         *tekfile;                /* tek file name */
  120. int
  121.         nstype,                    /* nameserver = 1-domain 2-IEN116  */
  122.         domto,                    /* time out for UDP domain request */
  123.         ndom,                    /* number of retries for domain requests */
  124.         timesl,                    /* time slice */
  125.         address,                /* segment address */
  126.         ioaddr;                    /* I/O address */
  127. char            *domainpath;                               /* domain name search path */
  128. char            *map3270;                               /* path to 3270 map */
  129. char            tnmode;                                 /* how we decide to connect to 3270 streams */
  130. long        sys_flags;
  131. #define    SYS_FLAGS_VISUAL_BELL    0x1        /* use visual bell */
  132.  
  133. };
  134.  
  135.  
  136. #define TNMODE_FLAGGED  0
  137. #define TNMODE_AUTO     1
  138. #define TNMODE_NOTFLAGGED 2
  139. #define TNMODE_OFF      3
  140.